import { IResponse, IData } from '@/types'
import request from '@/utils/request'
export const getCategoryList = async () => {
  return request.get<IResponse<IData[]>>('/category')
}
export const getSubCategoryList = async () => {
  return request.get<IResponse<IData[]>>('/subcategory')
}
export const getDetail = async () => {
  return request.get<IResponse<string>>('/detail')
}
